﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;
using System.Linq;
using System.Text;

namespace ALDIOrganizer
{
    public static class ComboBoxExtensionMethods
    {
        public static void GoTo(this ComboBox pComboBox,
            object pValue)
        {
            if (pValue == null)
            {
                return;
            }
            if (pComboBox.Items.Contains(pValue))
            {
                pComboBox.SelectedIndex = pComboBox.Items.IndexOf(pValue);                
            }                                
        }
        
    }
}
